package com.yc.txx.controller;


import com.yc.bean.Result;
import com.yc.biz.BizException;
import com.yc.txx.entity.UserEx;
import com.yc.txx.service.ITxxUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.Errors;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 天下行租车-用户表-4 前端控制器
 * </p>
 *
 * @author k
 * @since 2025-02-04
 */
@RestController
@RequestMapping("/txxuser")
public class TxxUserController {
    @Autowired
    ITxxUserService txxUserService;
    @RequestMapping("reg")
    public Result reg(@Validated UserEx user, Errors errors) throws BizException {
        txxUserService.reg(user, errors);
        return new Result(1,"注册成功",null);
    }
}
